|
|
|
|
|
|
|
Private Const FOF_SILENT = &H4 ' don't create progress/report
Private Const FOF_RENAMEONCOLLISION = &H8
Private Const FOF_NOCONFIRMATION = &H10
Private Const FOF_WANTMAPPINGHANDLE = &H20
Private Const FOF_ALLOWUNDO = &H40
Private Const FOF_FILESONLY = &H80
Private Const FOF_SIMPLEPROGRESS = &H100
Private Const FOF_NOCONFIRMMKDIR = &H200 |
|
|
|
|
|
|
|
|
Now the fun starts. The structure's pFrom and pTo fields can contain a list of one or more file or directory names. |
|
|
|
|
|
|
|
|
If the FOF_MULTIDESTFILES flag is set, pFrom and pTo each contain the same number of file names. Each file in the pFrom list is copied, renamed, or moved to the file specified in the pTo list. |
|
|
|
|
|
|
|
|
FOF_CONFIRMMOUSE is documented as currently not being used. FOF_SILENT prevents the SHFileOperation function from displaying any progress dialog boxes. |
|
|
|
|
|
|
|
|
FOF_RENAMEONCOLLISION causes the function to create a copy of a file if one already exists in a target directory. The copy's file name takes the form "Copy of . . ."something you have probably seen when working with Windows Explorer. |
|
|
|
|
|
|
|
|
FOF_NOCONFIRMATION causes the function to automatically perform operations for which it would normally prompt for confirmationfor example, overwriting files, creating directories, and so on. |
|
|
|
|
|
|
|
|
FOF_ALLOWUNDO causes deleted files and directories to be placed in the Recycle Bin. |
|
|
|
|
|
|
|
|
FOF_FILESONLY causes only files to be copied during wildcard operations (such as *.*). Directories are ignored. |
|
|
|
|
|
|
|
|
FOF_SIMPLEPROGRESS disables display of file names during copying. Only the message that you specify in the lpszProgressTitle field is displayed. |
|
|
|
|
|
|
|
|
FOF_NOCONFIRMMKDIR causes the function to automatically create new directories as necessary to perform the operation. |
|
|
|
|
|